<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/common.jsp"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<script type="text/javascript">
$(function(){
	$('.form_datetime').datetimepicker({
		language:'zh-CN',
		format: "yyyy-mm-dd hh:ii:ss",
		weekStart: 1,
        autoclose: true,
        todayBtn: true,
		todayHighlight: 1,
		startView: 'month',
		forceParse: true,
        showMeridian: 1
	});
});
</script>
<body>
	<div class="container" style="width:98%;padding:8px;">
		<div class="row">
			<div class="panel panel-default">
				<div class="panel-heading">新增</div>
					<div class="panel-body">
						<form class="form-horizontal" role="form" id="dailogForm" enctype="multipart/form-data" action="<%=path%>/system/sysUser/doMerge.do" method="POST">
								<input type="hidden" value="${sysUser.id}" name="id" />
							<div class="form-group">
						    	<label for="loginName" class="col-sm-2 control-label" style="text-align:left;">登录名</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysUser.loginName}" name="loginName" id="loginName" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="password" class="col-sm-2 control-label" style="text-align:left;">密码</label>
						    	<div class="col-sm-8">
								      <input type="text"  name="password" id="password" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="name" class="col-sm-2 control-label" style="text-align:left;">姓名</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysUser.name}" name="name" id="name" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="email" class="col-sm-2 control-label" style="text-align:left;">邮箱</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysUser.email}" name="email" id="email" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="phone" class="col-sm-2 control-label" style="text-align:left;">电话</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysUser.phone}" name="phone" id="phone" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="mobile" class="col-sm-2 control-label" style="text-align:left;">手机</label>
						    	<div class="col-sm-8">
								      <input type="text" value="${sysUser.mobile}" name="mobile" id="mobile" class="form-control"/>
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="fileUrl" class="col-sm-2 control-label" style="text-align:left;">用户头像</label>
						    	<div class="col-sm-8">
						    	      <input type="file" id="fileUrl" name="fileUrl" style="display:none;"/>
							  		  <label for="fileUrl" class="labelBtnAdd">+</label>&nbsp;&nbsp;
						    	</div>
							</div>
							<div class="form-group">
						    	<label for="loginFlag" class="col-sm-2 control-label" style="text-align:left;">是否可登录</label>
						    	<div class="col-sm-8">
						    		  <select name="loginFlag" id="loginFlag"  class="selectpicker show-tick form-control" data-live-search="true">
							 			 	 <option value="">请选择</option>
										     <option value="1" <c:if test="${1 == sysUser.loginFlag }">selected="selected"</c:if>>可登陆</option>
								      		 <option value="2" <c:if test="${2 == sysUser.loginFlag }">selected="selected"</c:if>>不可登陆</option>
								      </select>
						    	</div>
							</div>
							<div class="form-group">
								<div class="col-sm-offset-5 col-sm-10">
									<a type="button" class="btn btn-sm btn-default" id="formReturn" href="<%=path%>/system/sysUser/queryPageList.do">返回</a>
   									<button type="button" class="btn btn-sm btn-primary" id="formSubmit" onclick ="javascript:$('#dailogForm').submit();">提交</button>
								</div>
 							</div>
						</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>